package day05;

import java.lang.reflect.Array;
import java.util.Arrays;

public class ArrayDemo {
    public static void main(String[] args) {
        int[]a = {1,2,3,4,5};
        for (int i = 0 ; i<a.length ; i++){
            System.out.println(a[i]);
        }
        System.out.println("--------------------");
        a= Arrays.copyOf(a,a.length+1);
        for (int i = 0 ; i<a.length ; i++){
            System.out.println(a[i]);
        }
    }
}
